package com.example.demo.service.sys;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.demo.entity.sys.SysCaptchaEntity;
import sun.dc.pr.PRException;

import java.awt.image.BufferedImage;

/**
 * @ClassName SysCaptchaService
 * @Description: 验证码
 * @Author liyunjiang
 * @Date 2020/5/13 22:08
 */
public interface SysCaptchaService extends IService<SysCaptchaEntity> {
    /**
     * 获取图片验证码
     * @param uuid
     * @return
     * @PRException
     */
    BufferedImage getCaptcha(String uuid) throws PRException;

    boolean validate(String uuid, String captcha);
}
